From: Florian Müllner Date: Mon, 11 Nov 2024 20:14:42 +0000 (+0100) Subject: status/volume: Don't show OSD when initializing X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~173^2^2~171 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3d560909ea2f3a5e4dd614bd406f1ba4f84e077c;p=gnome-shell.git status/volume: Don't show OSD when initializing The OSD should only be shown when switching to or from headphones, not when initializing the volume indicator during startup. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8054 Part-of: --- diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 7e5032607..e2fa9a207 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -344,9 +344,11 @@ class OutputStreamSlider extends StreamSlider { if (hasHeadphones === this._hasHeadphones) return; + const initializing = this._hasHeadphones === undefined; this._hasHeadphones = hasHeadphones; this._updateIcon(); - this.showOSD(); + if (!initializing) + this.showOSD(); } _updateIcon() {